<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function f2(){
            this.a2=3;
            this.b2=4
        }
        function f1(){
            this.a1=3;
            this.b1=4
        }
        f1.prototype=new f2()
        f1.prototype.constructor=f1
        console.log(f1.prototype)
        //f2 {a2: 3, b2: 4, constructor: ƒ}
    </script>
</body>
</html>